package com.zheng.oss.dao.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;
import com.zheng.common.base.PageEntity;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2018-05-09
 */
@TableName("oss_file_stack")
public class OssFileStack extends PageEntity {

    private static final long serialVersionUID = 1L;

	private Integer id;
	private String md5;
	private String url;
	private String ext;
	private Long size;
	@TableField("other_info")
	private String otherInfo;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMd5() {
		return md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public String getOtherInfo() {
		return otherInfo;
	}

	public void setOtherInfo(String otherInfo) {
		this.otherInfo = otherInfo;
	}

	@Override
	protected Serializable pkVal() {
		return id;
	}

	@Override
	public String toString() {
		return "OssFileStack{" +
				"id=" + id +
				", md5='" + md5 + '\'' +
				", url='" + url + '\'' +
				", ext='" + ext + '\'' +
				", size=" + size +
				", otherInfo='" + otherInfo + '\'' +
				'}';
	}
}
